package com.mydiceplayer.models;

import java.io.Serializable;

import com.mydiceplayer.interfaces.media.PlayVideo;
import com.mydiceplayer.utils.UtilFile;

import android.graphics.Bitmap;

public class ModelVideo implements Serializable{
	private int id;
    private String title;
    private String album;
    private String artist;
    private String displayName;
    private String mimeType;
    private String path;
    private long size;
    private long duration;
    
    private long playPosition;
    
	/**
	 * @param id
	 * @param title
	 * @param album
	 * @param artist
	 * @param displayName
	 * @param mimeType
	 * @param path
	 * @param size
	 * @param duration
	 */
	public ModelVideo(int id, String title, String album, String artist,
			String displayName, String mimeType, String path, long size,
			long duration) {
		super();
		this.id = id;
		this.title = title;
		this.album = album;
		this.artist = artist;
		this.displayName = displayName;
		this.mimeType = mimeType;
		this.path = path;
		this.size = size;
		this.duration = duration;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAlbum() {
		return album;
	}
	public void setAlbum(String album) {
		this.album = album;
	}
	public String getArtist() {
		return artist;
	}
	public void setArtist(String artist) {
		this.artist = artist;
	}
	public String getDisplayName() {
		return displayName;
	}
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	public String getMimeType() {
		return mimeType;
	}
	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public long getSize() {
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}
	public long getDuration() {
		return duration;
	}
	public void setDuration(long duration) {
		this.duration = duration;
	}

	public String getCalculatedSize(){
		return UtilFile.calculateSize(size);
	}
	public String getCalculatedDuration(){
		return UtilFile.calculateDuration(duration);
	}
	public CharSequence getCalculatedPlayPosition() {
		return UtilFile.calculateDuration(playPosition);
	}
	
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		String value = "id:" + id +
						"  " + "displayName:" + displayName;
		return value;
	}
	
	public long getPlayPosition() {
		return playPosition;
	}
	
	
	
	
}
